package com.googlecode.wannabet.domain;

import com.google.appengine.api.datastore.Entity;

public class Tournament {
	
	private Long tournamentID;
	
	private String name;

	public static Entity getTournamentEntity(Long tournamentID, String name) {
		Entity entity = new Entity(Tournament.class.getSimpleName());
		
		entity.setProperty("tournamentID", tournamentID);
		entity.setProperty("name", name);
		
		return entity;
	}
	
	/**
	 * @return the tournamentID
	 */
	public Long getTournamentID() {
		return tournamentID;
	}

	/**
	 * @param tournamentID the tournamentID to set
	 */
	public void setTournamentID(Long tournamentID) {
		this.tournamentID = tournamentID;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

}
